//
//  RootSearchNewssummaryinfolist.m
//  __PRODUCTNAME__
//
//  Created by Gollum on 16/09/21
//  Copyright (c) Gollum. All rights reserved.
//

#import "RootSearchNewssummaryinfolist.h"
#import "RootSearchNewsimageinfolist.h"

@implementation RootSearchNewssummaryinfolist

+ (NSDictionary *)objectClassInArray{
    return @{@"newsImageInfoList" : [RootSearchNewsimageinfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    //记得super
    [super setValue:value forKey:key];
    
    NSMutableArray <RootSearchNewsimageinfolist *>*NewsImage = [NSMutableArray array];
    
    NSArray *valueArray = value;
    if ([key isEqualToString:@"newsImageInfoList"]) {
        for (NSDictionary *dic in valueArray) {
            RootSearchNewsimageinfolist *myData = [RootSearchNewsimageinfolist modelWithDic:dic];
            [NewsImage addObject:myData];
        }
        _newsImageInfoList = NewsImage;
    }
    
    
}

@end
